<?php use_stylesheet('/enermaatik/arvamused.css') ?>
<?php slot('article') ?>
<?php include_component('headerMenu', 'breadCrumbs') ?>
<div class="clear"></div>
<div class="ccontentbox">
	<div class="ccontent">
		<div class="korvsisu">
			<h1><?php echo $node['pageTitle'] ?></h1>
			<div class="korvinfobox andmed">
				<div class="arvamusmenu">
					<div class="amenupealkiri toode">
						<p><?php echo __('Toode') ?></p>
					</div>
					<div class="amenupealkiri">
						<p><?php echo __('Arvamus') ?></p>
					</div>
					<div class="amenupealkiri right">
						<p><?php echo __('Toimingud') ?></p>
					</div>
					<div class="clear"></div>
				</div>
				<?php foreach($comments as $comment): ?>
				<div class="arvamuserow">
					<div class="rowsisu">
						<div class="andmecolumn">
							<p><a class="toode" href="<?php echo $productLinks[$comment['Product']['id']] ?>"><?php echo $comment['Product']['name'] ?></a></p>
						</div>
						<div class="andmecolumn center">
							<p><?php echo $comment['message'] ?></p>

						</div>
						<div class="andmecolumn right">
							<p><a href="<?php echo LinkGen::getInstance(LinkGen::STRUCTURE_ACTIONS)->link(null, array('module' => 'memberzoneComments', 'action' => 'deleteComment', 'commentID' => $comment['id'])) ?>"><?php echo __('Eemalda') ?></a></p>
						</div>
						<div class="clear"></div>
					</div>
				</div>
				<?php endforeach; ?>
			
				<div class="clear"></div>
			</div>
		</div>
		<div class="ccontentmainbottom"></div>
		<div class="clear"></div>
	</div>
</div>
<?php end_slot() ?>